lst=list(input().split())
lens=len(lst)
a=0
b=-1
if lens%2!=0:
    number=(lens-1)/2
else:
    number=lens/2
for i in range(int(number)):
    lst[a],lst[b]=lst[b],lst[a]
    a=a+1
    b=b-1
print(lst)
    
